package com.xiaoxin.nmzp.server.service;

import com.xiaoxin.nmzp.server.entity.domain.NmzpMessage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.xiaoxin.nmzp.server.entity.req.MsgReq;
import com.xiaoxin.nmzp.server.entity.vo.MsgItemVO;

import java.util.List;

/**
* @author xiaoxin
* @description 针对表【nmzp_message】的数据库操作Service
* @createDate 2024-11-05 11:21:35
*/
public interface NmzpMessageService extends IService<NmzpMessage> {

    void sendMsg(MsgReq msgReq);

    /**
     * 获取牛马信息
     * @param targetId 目标用户
     * @return
     */
    List<NmzpMessage> getTargetMsg(Long targetId);

    /**
     * 查询聊天列表
     * @return
     */
    List<MsgItemVO> selectMsgItem();
}
